<div id="tabs">
	<ul>
        <li id="current"><?php echo $this->Html->link(__('Học kỳ - niên khóa', true), array('controller'=>'hknks','action' => 'index')); ?></li>
        <li><?php echo $this->Html->link(__('Thêm Học kỳ - niên khóa', true), array('action' => 'add')); ?></li>
	</ul>
 </div>


<div class="hknks index">
	<h2><?php __('Ds HKNK');?></h2>
	<table cellpadding="0" cellspacing="0" id= "tables">
	<tr>
			<!--<th><?php //echo $this->Paginator->sort('id');?></th>
			--><th><?php echo $this->Paginator->sort('Học kỳ');?></th>
			<th><?php echo $this->Paginator->sort('Niên khóa');?></th>
			<th class="actions"><?php __('Lựa chọn');?></th>
	</tr>
	<?php
	$i = 0;
	foreach ($hknks as $hknk):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<!--<td><?php //echo $hknk['Hknk']['id']; ?>&nbsp;</td>
		--><td><?php echo $hknk['Hknk']['hocky']; ?>&nbsp;</td>
		<td><?php echo $hknk['Hknk']['nienkhoa']; ?>&nbsp;</td>
		<td class="actions">
			<?php //echo $this->Html->link(__('Xem', true), array('action' => 'view', $hknk['Hknk']['id'])); ?>
			<?php echo $this->Html->link(__('Sửa', true), array('action' => 'edit', $hknk['Hknk']['id'])); ?>
			<?php echo $this->Html->link(__('Xóa', true), array('action' => 'delete', $hknk['Hknk']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $hknk['Hknk']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Trang %page%/%pages%, hiện có %count% mẫu tin', true)
	));
	?>		</p>

	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('Trước', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('Sau', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
</div>
<div class="actions">
	<!--<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Thêm hknk', true), array('action' => 'add')); ?></li>
		<li><?php echo $this->Html->link(__('List Khmauks', true), array('controller' => 'khmauks', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Khmauk', true), array('controller' => 'khmauks', 'action' => 'add')); ?> </li>
	</ul>
--></div>